package com.ax.associator.store.domain;

import java.util.Date;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

public class BaseAssociator {
    /**
     * 会员ID
     */
    private Long associatorId;

    /**
     * 人员姓名
     */
    private String associatorName;

    /**
     * 联系电话
     */
    private String phone;

    /**
     * 身份证号
     */
    private String personId;

    /**
     * 性别
     */
    private String sex;

    /**
     * 生日
     */
    private Date birth;

    /**
     * 地址
     */
    private String address;

    /**
     * 备注
     */
    private String remarks;

    /**
     * 登记药店ID
     */
    private Long drugstoreId;

    /**
     * 登记药店名称
     */
    private String drugstoreName;

    /**
     * 登记人员ID
     */
    private Long registrarId;

    /**
     * 登记人员姓名
     */
    private String registrarName;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 修改时间
     */
    private Date updateDate;

    /**
     * 状态(1：有效；0：注销)
     */
    private Integer flag;
    /**
     * 附件路径
     */
    private String attachmentUrl;

    public BaseAssociator(Long associatorId, String associatorName, String phone, String personId, String sex, Date birth, String address, String remarks, Long drugstoreId, String drugstoreName, Long registrarId, String registrarName, Date createDate, Date updateDate, Integer flag) {
        this.associatorId = associatorId;
        this.associatorName = associatorName;
        this.phone = phone;
        this.personId = personId;
        this.sex = sex;
        this.birth = birth;
        this.address = address;
        this.remarks = remarks;
        this.drugstoreId = drugstoreId;
        this.drugstoreName = drugstoreName;
        this.registrarId = registrarId;
        this.registrarName = registrarName;
        this.createDate = createDate;
        this.updateDate = updateDate;
        this.flag = flag;
    }

    public BaseAssociator() {
        super();
    }

    public Long getAssociatorId() {
        return associatorId;
    }

    public void setAssociatorId(Long associatorId) {
        this.associatorId = associatorId;
    }

    public String getAssociatorName() {
        return associatorName;
    }

    public void setAssociatorName(String associatorName) {
        this.associatorName = associatorName == null ? null : associatorName.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone == null ? null : phone.trim();
    }

    public String getPersonId() {
        return personId;
    }

    public void setPersonId(String personId) {
        this.personId = personId == null ? null : personId.trim();
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public Date getBirth() {
        return birth;
    }

    public void setBirth(Date birth) {
        this.birth = birth;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address == null ? null : address.trim();
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks == null ? null : remarks.trim();
    }

    public Long getDrugstoreId() {
        return drugstoreId;
    }

    public void setDrugstoreId(Long drugstoreId) {
        this.drugstoreId = drugstoreId;
    }

    public String getDrugstoreName() {
        return drugstoreName;
    }

    public void setDrugstoreName(String drugstoreName) {
        this.drugstoreName = drugstoreName == null ? null : drugstoreName.trim();
    }

    public Long getRegistrarId() {
        return registrarId;
    }

    public void setRegistrarId(Long registrarId) {
        this.registrarId = registrarId;
    }

    public String getRegistrarName() {
        return registrarName;
    }

    public void setRegistrarName(String registrarName) {
        this.registrarName = registrarName == null ? null : registrarName.trim();
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Integer getFlag() {
        return flag;
    }

    public void setFlag(Integer flag) {
        this.flag = flag;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.MULTI_LINE_STYLE);
    }

    public String getAttachmentUrl() {
        return attachmentUrl;
    }

    public void setAttachmentUrl(String attachmentUrl) {
        this.attachmentUrl = attachmentUrl;
    }
}